package com.ruoyi.mas.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mas.mapper.MasTeacherMapper;
import com.ruoyi.mas.domain.MasTeacher;
import com.ruoyi.mas.service.IMasTeacherService;

/**
 * 教师信息Service业务层处理
 * 
 * @author xiaotang
 * @date 2022-03-22
 */
@Service
public class MasTeacherServiceImpl implements IMasTeacherService 
{
    @Autowired
    private MasTeacherMapper masTeacherMapper;

    /**
     * 查询教师信息
     * 
     * @param id 教师信息主键
     * @return 教师信息
     */
    @Override
    public MasTeacher selectMasTeacherById(Long id)
    {
        return masTeacherMapper.selectMasTeacherById(id);
    }

    /**
     * 查询教师信息列表
     * 
     * @param masTeacher 教师信息
     * @return 教师信息
     */
    @Override
    public List<MasTeacher> selectMasTeacherList(MasTeacher masTeacher)
    {
        return masTeacherMapper.selectMasTeacherList(masTeacher);
    }

    /**
     * 新增教师信息
     * 
     * @param masTeacher 教师信息
     * @return 结果
     */
    @Override
    public int insertMasTeacher(MasTeacher masTeacher)
    {
        return masTeacherMapper.insertMasTeacher(masTeacher);
    }

    /**
     * 修改教师信息
     * 
     * @param masTeacher 教师信息
     * @return 结果
     */
    @Override
    public int updateMasTeacher(MasTeacher masTeacher)
    {
        return masTeacherMapper.updateMasTeacher(masTeacher);
    }

    /**
     * 批量删除教师信息
     * 
     * @param ids 需要删除的教师信息主键
     * @return 结果
     */
    @Override
    public int deleteMasTeacherByIds(Long[] ids)
    {
        return masTeacherMapper.deleteMasTeacherByIds(ids);
    }

    /**
     * 删除教师信息信息
     * 
     * @param id 教师信息主键
     * @return 结果
     */
    @Override
    public int deleteMasTeacherById(Long id)
    {
        return masTeacherMapper.deleteMasTeacherById(id);
    }
}
